libxl: events: Make libxl__async_exec_* pass caller an rc
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 10 Feb 2015 16:27:39 +0000 (16:27 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 26 Jun 2015 15:53:50 +0000 (16:53 +0100)
commite3935054e76f85934db54e514dfb6db4cdfead30
tree8413e4cbfb87a8a6dccea7138707e12a9c8870bc
parentf5f8400fd09989b2b977cb99c34af7cf1a41f47c
libxl: events: Make libxl__async_exec_* pass caller an rc

The internal user of libxl__async_exec_start et al now gets an rc as
well as the process's exit status.

For now this is always either 0 or ERROR_FAIL, but with ao
abort requests this will possibly be ABORTED or TIMEDOUT too.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v4: Improve doc comment as suggested by Ian C.
v2: New patch due to rebause; v1 had changes to device_hotplug_*
     scripts instead.
    Callback now gets unambiguous information about error situation:
     previously, if only thing that went wrong was that child died
     badly, rc would be FAILED, which was unambigously; now rc=0.
    Add a comment document the meaning of the rc and status parameters
     to the callback.
tools/libxl/libxl_aoutils.c
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_netbuffer.c
tools/libxl/libxl_remus_disk_drbd.c